create dict from json file python

31

save a dict to json python -

import json

with open('data.json', 'w') as fp:
    json.dump(data, fp)

Comments

Submit
0 Comments